package com.nation.serviceImpl;

import com.nation.dao.DevelopmentDao;
import com.nation.domain.VEconomicAndDevelopment;
import com.nation.service.DevelopmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by dqd on 2017/11/3.
 */
@Service
public class DevelopmentServiceImpl implements DevelopmentService{
    @Autowired
    DevelopmentDao DevelopmentDao;
    @Override
    public List<VEconomicAndDevelopment> findAll() {
        return DevelopmentDao.findAll();
    }

    @Override
    public VEconomicAndDevelopment findByCountryCode(String country_code) {
        return DevelopmentDao.findByCountryCode(country_code);
    }

    @Override
    public Boolean update(VEconomicAndDevelopment vEconomicAndDevelopment) {
        return DevelopmentDao.update(vEconomicAndDevelopment);
    }

    @Override
    public List<VEconomicAndDevelopment> findByLimit(Map<String, Object> map) {
        return DevelopmentDao.findByLimit(map);
    }

    @Override
    public Boolean insert(VEconomicAndDevelopment vEconomicAndDevelopment) {
        return DevelopmentDao.insert(vEconomicAndDevelopment);
    }

    @Override
    public List<VEconomicAndDevelopment> findByCondition(Map<String, Object> map) {
        return DevelopmentDao.findByCondition(map);
    }

    @Override
    public Boolean delete(String pk) {
        return DevelopmentDao.delete(pk);
    }
}
